﻿using System;
using ATM.Terminal.Models;
using ATM.Terminal.Rendering.Base;
using ATM.Terminal.Screens.Base;

namespace ATM.Terminal.Screens
{
    public class WelcomeScreen : ScreenBase
    {
        public override void Render(RenderTargetBase renderTarget)
        {
            renderTarget.Render(new ScreenModel()
                {
                    Title = "Welcome Screen",
                    Content = new[]
                        {
                            "Press enter to continue."
                        }
                });
        }

        public override void ProcessInput(ConsoleKeyInfo input)
        {
            switch (input.Key)
            {
                case ConsoleKey.Enter:
                    base.RaiseScreenChange(new AuthenticationScreen());
                    break;
            }
        }
    }
}
